package design.patterns.templatemethod;

/**
 * @Desc:
 * @author: cww
 * @DateTime: 2020-06-11 22:17
 */

public class CDAccount extends Account {
    public CDAccount() {
    }

    @Override
    protected String doCalculateAccountType() {
        return "Certificate of Deposite";
    }

    @Override
    protected double doCalculateInterestRate() {
        return 0.065D;
    }
}
